package main

import (
	log "github.com/cihub/seelog"
	"fmt"
)



func main() {
	defer log.Flush()

	//加载配置文件
	logger, err := log.LoggerFromConfigAsFile("config.xml")

	if err!=nil{

		fmt.Println("parse config.xml error")
	}

	//替换记录器
	log.ReplaceLogger(logger)

	for i:=0;i<1024;i++{

		log.Info("Hello from Seelog!")
	}

}

